<%@ Page Language="VB" MasterPageFile="~/site.master" AutoEventWireup="false" codefile="Checkout.aspx.vb" Inherits="Checkout" title="Checkout" %>
<%@ Register TagPrefix="wu" TagName="ShoppingCart" Src="ShoppingCart.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="server">
 
    <asp:Label id="NoCartlabel" runat="server" visible="false">
        There are no items in your cart. Visit the shop to buy items.
    </asp:Label>
    
    <div style="float:right">
        <asp:LoginView ID="LoginView1" Runat="server">
            <AnonymousTemplate>
                <asp:passwordrecovery id="PasswordRecovery1" runat="server" />
            </AnonymousTemplate>
        </asp:LoginView>
    </div>
    
    <asp:wizard id="Wizard1" runat="server" activestepindex="1"
        OnFinishButtonClick="Wizard1_FinishButtonClick" OnNextButtonClick="Wizard1_NextButtonClick">
        <WizardSteps>
            <asp:WizardStep runat="server" Title="Login" AllowReturn="False">
                <asp:login id="Login1" runat="server"
                    CreateUserText="Not a member? Create an account"
                    CreateUserUrl="~/createaccount.aspx"></asp:login>
            </asp:WizardStep>
            
            <asp:WizardStep runat="server" Title="Delivery Address">
                <asp:checkbox id="chkUseProfileAddress" runat="server" autopostback="True"
                    text="Use membership address" OnCheckedChanged="chkUseProfileAddress_CheckedChanged"></asp:checkbox><br />
                
                <table border="0">
                    <tr><td>Name</td><td><asp:textbox id="txtName" runat="server" /></td></tr>
                    <tr><td>Address</td><td><asp:textbox id="txtAddress" runat="server" /></td></tr>
                    <tr><td>City</td><td><asp:textbox id="txtCity" runat="server" /></td></tr>
                    <tr><td>County</td><td><asp:textbox id="txtCounty" runat="server" /></td></tr>
                    <tr><td>Postcode</td><td><asp:textbox id="txtPostCode" runat="server" /></td></tr>
                    <tr><td>Country</td><td><asp:textbox id="txtCountry" runat="server" /></td></tr>
                </table>
            </asp:WizardStep>
            
            <asp:WizardStep runat="server" Title="Payment">
                Card Type: 
                <asp:DropDownList id="lstCardType" runat="server">
                    <asp:ListItem>MasterCard</asp:ListItem>    
                    <asp:ListItem>Visa</asp:ListItem>    
                </asp:DropDownList>
                <br />
                Card Number: <asp:Textbox id="txtNumber" runat="server" Text="0123456789" ReadOnly="True"/>
                <br />
                Expires:
                <asp:textbox id="txtExpiresMonth" runat="server" columns="2" />
                /
                <asp:textbox id="txtExpiresYear" runat="server"  columns="4" />
            </asp:WizardStep>
            
            <asp:WizardStep runat="server" Title="Finish">
            
                <wu:ShoppingCart runat="server" ID="ShoppingCart1"></wu:ShoppingCart>
                
                <br /><br />
                Please confirm you wish to have 
                deducted from your credit card.

            </asp:WizardStep>
            
            <asp:WizardStep runat="server" StepType="Complete" Title="Order Complete">
                Thank you for your order. 
            </asp:WizardStep>
            
        </WizardSteps>

        <SideBarStyle VerticalAlign="Top"></SideBarStyle>
    </asp:wizard>
    
    <asp:Label ID="CreateOrderErrorLabel" runat="server" visible="false">
        We are sorry but there was an error creating you order.<br /><br />
        The site administrator has been notified of this, and the club shop <br />
        have been sent copies of your order details, so once they've finished their <br />
        afternoon tea, they will process the order and send you a manual email confirmation.
    </asp:Label>
    
</asp:Content>
